package com.zuijin.vue2blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 普通用户表
 * </p>
 *
 * @author 醉瑾
 * @since 2022-04-22
 */
@TableName("user_com")
@ApiModel(value = "UserCom对象", description = "普通用户表")
public class UserCom implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("用户头像地址")
    @TableField("head_url")
    private String headUrl;

    @ApiModelProperty("生日")
    @TableField("birthday")
    private Date birthday;

    @ApiModelProperty("账号等级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("账号状态 0->可用,1->不可用")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("性别 0->女，1->男，3->未知")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("爱好")
    @TableField("hobbies")
    private String hobbies;

    @ApiModelProperty("个人简介")
    @TableField("profile")
    private String profile;

    @ApiModelProperty("账号注册时间")
    @TableField("create_date")
    private Date createDate;

    @ApiModelProperty("账号修改时间")
    @TableField("update_date")
    private Date updateDate;

    @ApiModelProperty("逻辑删除字段 0->未删除，1->删除")
    @TableField("deleted")
    private Integer deleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHobbies() {
        return hobbies;
    }

    public void setHobbies(String hobbies) {
        this.hobbies = hobbies;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "UserCom{" +
        "id=" + id +
        ", nickname=" + nickname +
        ", username=" + username +
        ", phone=" + phone +
        ", email=" + email +
        ", password=" + password +
        ", headUrl=" + headUrl +
        ", birthday=" + birthday +
        ", level=" + level +
        ", state=" + state +
        ", gender=" + gender +
        ", address=" + address +
        ", hobbies=" + hobbies +
        ", profile=" + profile +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", deleted=" + deleted +
        "}";
    }
}
